import java.util.Scanner;

public class Test2_7 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("Enter the number of minutes:");
        int minutes = input.nextInt();
        int hours = minutes / 60;
        int days = hours / 24;
        int result_days = days % 365;
        int result_years = days / 365;
        System.out.print(minutes + " minutes is approximately " + result_years + " years and " + result_days + " days");
    }
}
